{include file="common/header"}
	<div class="main-container container-fluid">
		<div class="page-container">
			            {include file="common/menu"}
            <!-- Page Content -->
            <div class="page-content">
                <!-- Page Breadcrumb -->
                <div class="page-breadcrumbs">
                    <ul class="breadcrumb">
                                        <li>
                        <a href="{:url('admin/index')}">系统</a>
                    </li>
                                        <li class="active">栏目管理</li>
                                        </ul>
                </div>
                <!-- /Page Breadcrumb -->

                <!-- Page Body -->
                <div class="page-body">
                    
<div class="row">
    <div class="col-lg-12 col-sm-12 col-xs-12">
        <div class="widget">
            <div class="widget-header bordered-bottom bordered-blue">
                <span class="widget-caption">新增栏目</span>
            </div>
            <div class="widget-body">
                <div id="horizontal-form">
                    <form class="form-horizontal" role="form" action="" method="post" enctype="multipart/form-data">
                        <div class="form-group">
                            <label for="cate_name" class="col-sm-2 control-label no-padding-right">栏目中文名称</label>
                            <div class="col-sm-6">
                                <input class="form-control" id="cate_name" placeholder="" name="cate_name" required="" type="text">
                            </div>
                            <p class="help-block col-sm-4 red">* 必填</p>
                        </div>
                        
                        <div class="form-group">
                            <label for="cate_ename" class="col-sm-2 control-label no-padding-right">栏目英文名称</label>
                            <div class="col-sm-6">
                                <input class="form-control" id="cate_ename" placeholder="" name="cate_ename" required="" type="text">
                            </div>
                            <p class="help-block col-sm-4 red">* 必填</p>
                        </div>
                        
                        <div class="form-group">
                            <label for="cate_pic" class="col-sm-2 control-label no-padding-right">栏目封面</label>
                            <div class="col-sm-6">
                                <input id="cate_pic" name="cate_pic" type="file">
                            </div>                          
                        </div>
                        
                        <div class="form-group">
                            <label for="cate_keywords" class="col-sm-2 control-label no-padding-right">栏目关键词</label>
                            <div class="col-sm-6">
                                <input class="form-control" id="cate_keywords" name="cate_keywords" type="text">
                            </div>                          
                        </div>
                        
                        <div class="form-group">
                            <label for="cate_desc" class="col-sm-2 control-label no-padding-right">栏目描述</label>
                            <div class="col-sm-6">
                                 <textarea name="cate_desc" class="form-control"></textarea>
                            </div>                          
                        </div>
                        
                        <div class="form-group">
                            <label for="cate_type" class="col-sm-2 control-label no-padding-right">栏目类型</label>
                            <div class="col-sm-6">
	                            <div class="radio">
		                            <label>
		                            <input name="cate_type" type="radio" checked="checked" value="0">
		                            <span class="text">封面</span>
		                            </label>
		                            <label>
		                            <input name="cate_type" type="radio" value="1">
		                            <span class="text">列表</span>
		                            </label>
		                            <label>
		                            <input name="cate_type" type="radio" value="2">
		                            <span class="text">产品</span>
		                            </label>
	                            </div>
                            </div>                          
                        </div>

                        <div class="form-group">
                            <label for="parentid" class="col-sm-2 control-label no-padding-right">上级栏目</label>
                            <div class="col-sm-6">
                                <select name="parentid" style="width: 100%;">
                                <option selected="selected" value="0">上级分类</option>
                                {volist name="catetree" id="vo"}
                                   <option value="{$vo.cate_id}"><?php echo str_repeat('-',$vo['level']*8);?>{$vo.cate_name}</option>
                                {/volist}
                                </select>
                            </div>
                        </div>  
                        
                        <div class="form-group">
                            <label for="cate_content" class="col-sm-2 control-label no-padding-right">栏目内容</label>
                            <div class="col-sm-6">
                                 <textarea name="cate_content" id="content" class="note-editor"></textarea>
                            </div>                          
                        </div>
                        
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-default">保存信息</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

                </div>
                <!-- /Page Body -->
            </div>
            <!-- /Page Content -->
		</div>	
	</div>
<script type="text/javascript" src="__IMG__/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" src="__IMG__/ueditor/ueditor.all.min.js"></script>
    <script type="text/javascript" src="__IMG__/ueditor/lang/zh-cn/zh-cn.js"></script>
    <script type="text/javascript">
    //实例化编辑器
    //建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
    UE.getEditor('content',{initialFrameWidth:800,initialFrameHeight:400,});
    </script>
{include file="common/footer"}